<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NETMovie.UI.WebMVC.Models.SearchMovieViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Search


   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<SCRIPT TYPE="text/javascript"> 
<!--
    //Disable right click script 
    //visit http://www.rainbow.arch.scriptmania.com/scripts/ 
    var message = "Sorry, right-click has been disabled";
    /////////////////////////////////// 
    function clickIE() { if (document.all) { (message); return false; } }
    function clickNS(e) {
        if
(document.layers || (document.getElementById && !document.all)) {
            if (e.which == 2 || e.which == 3) { (message); return false; } 
        } 
    }
    if (document.layers)
    { document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clickNS; }
    else { document.onmouseup = clickNS; document.oncontextmenu = clickIE; }
    document.oncontextmenu = new Function("return false") 
    
    var vid;
     
    function init() {
        vid = document.getElementById("myVideo");
        vid.addEventListener("loadedmetadata", addFullscreenButton, false);
    }
     
    function addFullscreenButton(){
        if (vid.webkitSupportsFullscreen) {
            var fs=document.getElementById("fs");
            fs.style.visibility="visible";
        }
    }
     
    function goFullscreen() {
            vid.webkitEnterFullscreen();
    }

// --> 
</SCRIPT> 
    <% using (Html.BeginForm()) { %>
    <p>
     <%= Html.LabelFor(m => m.Category)%>
     <%= Html.DropDownListFor(m => m.Category, (IEnumerable<SelectListItem>)Session["Category"], "--select one--")%>
     </p>
     <p>
    
     <%= Html.LabelFor(m=>m.Title) %>
     <%= Html.TextBoxFor(m => m.Title) %>
     </p>
     <p>
        <%= Html.LabelFor(m=>m.Keyword) %>
     <%= Html.TextBoxFor(m => m.Keyword) %>
     </p>
     <p>
     <input type="submit" value="Search Movie" name="SearchMoviePageButton"/>
     </p>

     <% Html.RenderPartial("BrowseMovieResult", Model.Results); %>

<%} %>
</asp:Content>